package com.wuhainan.beelzebub.repository.system;

import com.wuhainan.beelzebub.common.BaseRepository;
import com.wuhainan.beelzebub.entity.system.Department;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

/**
 * <br>Created by 吴海南 on 2017/12/29.
 * <br>星期五 at 16:35.
 */
@Repository
public interface DepartmentRepository extends BaseRepository<Department,String> {
    @Query("select max(d.code) from Department d")
    Integer maxCode();
}
